package com.nti56.springboot.model;



/**
 * 封装返回数据
 * @author szq
 * @2015年5月20日
 */
public class AjaxResult {
	
	public static String SAVE_OK = "保存成功!";
	public static String EXEC_OK = "执行成功!";
	public static String UPDATE_OK = "修改成功!";
	public static String DLELETE_OK = "删除成功!";
	public static String SEND2GIS_OK = "下发GIS成功!";
	public static String SYNCHRONIZE_OK = "同步成功!";
	public static String CHECK_EXIST_OK = "校验唯一性成功!";
	
	public static String EXEC_FAIL = "执行失败!";
	public static String SAVE_FAIL = "保存失败!";
	public static String UPDATE_FAIL = "修改失败!";
	public static String DLELETE_FAIL = "删除失败!";
	public static String SEND2GIS_FAIL = "下发GIS失败，请联系管理员!";
	public static String SYNCHRONIZE_FAIL = "同步失败!";
	public static String CHECK_EXIST_FAIL = "校验唯一性失败!";
	
	public static String RESUME_OK = "恢复成功!";
	public static String RESUME_FAIL = "恢复失败!";
	public static String PAUSE_OK = "暂停成功!";
	public static String PAUSE_FAIL = "暂停失败!";
	
	private boolean success = true;
	
	private String msg = "操作成功";
	private Object data;
	
	public AjaxResult(boolean success, String msg, Object data){
		this.success = success;
		this.msg = msg;
		this.data = data;
	}
	
	public AjaxResult(boolean success, String msg){
		this.success = success;
		this.msg = msg;
	}
	
	public AjaxResult(Object data){
		this.data = data;
	}
		
	public AjaxResult(){
		
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}




	
	
}
